package com.ql.gamelogm.dao;

import com.ql.gamelogm.entities.Mail;

import java.util.List;

public interface MailDao {
    public void SaveMailSended(Mail mail);
    public void SaveMailInBox(Mail mail);
    public boolean SaveMailDeleted(Mail mail);
    public int DeleteMailInBoxById(int id);
    public int DeleteMailSendedById(int id);
    public List<Mail> findAllMailsInBox();
    public List<Mail> findAllMailsDeleted();
    public List<Mail> findAllMailsSended();


    public List<Mail> findAllMailsInBoxBySendTo(String sendto);
    public List<Mail> findAllMailsDeletedBySendTo(String sendto);

    public void updateMailState(int id);
    public List<Mail> findMailInBoxById(int id);
    public List<Mail> findMailSendedById(int id);
    public List<Mail> findMailDeletedById(int id);

}
